from django.db import models

# Create your models here.
class New_login(models.Model):
    name = models.CharField(max_length=20, verbose_name="用户名")
    password = models.CharField(max_length=20, verbose_name="密码")
    class Meta:
        db_table = "login"
    def __str__(self):
        return self.name

class My_goods(models.Model):
    name = models.CharField(max_length=20, verbose_name="商品名称")
    price = models.DecimalField(max_digits=7, decimal_places=2, verbose_name="价格")
    number = models.IntegerField(verbose_name="数量")
    address = models.CharField(max_length=20, verbose_name="产地")
    class Meta:
        db_table = "my_goods"
